package com.github.raffle.behavior.state.color;


public class GreenState implements ColorState {

	@Override
	public void handlePush(ColorContext ctx) {
		System.out.println("变成黑色");
		ctx.setState(new BlackState());
	}

	@Override
	public void handlePull(ColorContext ctx) {
		System.out.println("变成蓝色");
		ctx.setState(new BlueState());
	}

	@Override
	public Color getColor() {
		return Color.GREEN;
	}

}
